//
//  MyNetWorking.h
//  NewProject
//
//  Created by admin on 2017/6/19.
//  Copyright © 2017年 李航飞. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MyNetWorking : NSObject

+ (instancetype)sharedManager;

/**
 *  get请求方法
 *
 *  @param path    路径
 *  @param success 请求成功返回数据
 *  @param failure 请求失败
 */
- (void)GET_PATH:(NSString *)path
         success:(void(^)(id responseObject))success
         failure:(void(^)(NSError *error))failure;

/**
 *  post请求方法
 *
 *  @param path    路径
 *  @param params  参数
 *  @param success 请求成功返回数据
 *  @param failure 请求失败
 */
- (void)POST_PATH:(NSString *)path
           params:(NSDictionary *)params
          success:(void(^)(id responseObject))success
          failure:(void(^)(NSError *error))failure;


@end
